<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<%@include file="../../../../include/meta.jsp"%>

<title>通用权限管理系统</title>
<%@include file="../../../../include/css.jsp"%>

</head>
<body>
	<%@include file="../../include/header.jsp"%>
	<nav aria-label="breadcrumb">
		<ol class="breadcrumb">
			<li class="breadcrumb-item"><a
				href="${pageContext.request.contextPath}/app/main.html"><i
					class="fas fa-home"></i>主页</a></li>
			<li class="breadcrumb-item"><a
				href="${pageContext.request.contextPath}/app/function/list.html">功能管理</a></li>
			<li class="breadcrumb-item active" aria-current="page">编辑功能组</li>
		</ol>
	</nav>

	<div class="container">
		<div class="row">
			<div class="col-12">
				<form
					action="${pageContext.request.contextPath}/app/function/group/update.html"
					method="post">
					<input type="hidden" name="id" value="${fm.id}">
					<div class="form-group">
						<label for="">功能组名称</label> <input type="text"
							class="form-control" id="name" name="name" value="${fm.name}"
							aria-describedby="hbName"> <small id="hbName"
							class="form-text text-danger">${msgName}</small>
					</div>

					<div class="form-group row">
						<div class="col-md-4">
							<button type="submit" class="btn btn-primary btn-block">保存</button>
						</div>
						<div class="col-md-3">
							<button type="reset" class="btn btn-warning btn-block">重置</button>
						</div>
						<div class="col-md-2 offset-md-3">
							<a class="btn btn-secondary btn-block"
								href="${pageContext.request.contextPath}/app/function/list.html">返回</a>
						</div>
					</div>
				</form>
				<div id="message" class="lead text-danger" style="margin-top: 10px;">
					${message}
					<script>
						setTimeout(function() {
							$("#message").text("");
						}, 3000);
					</script>
				</div>
			</div>
		</div>
	</div>

	<%@include file="../../../../include/js.jsp"%>

</body>
</html>